<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
     
    <div id="app">
         <p v-html="msg"></p>
         <h2 v-text="msg2"></h2>
    </div>
    <script src='https://cdn.jsdelivr.net/npm/vue@2.7.14/dist/vue.js'></script>
    <script>

        //once 只编译一次
        //v-pre 只显示最原始的表达式
        const vm = new Vue({
             el:"#app",
             data:{
                msg:"<h1 style='color:red'>有点忙早点睡</h1>",
                msg2:"那个女孩是我妹"
             }
        })
    </script>
</body>
</html>